package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-09-25
 * Time: 18:29
 */
public class Homework {
    public static void main(String[] args) {
        int sum1 = 0;
        int sum2 = 0;
        int sum3 = 0;
        for (int i = 1; i <= 10 ; i++) {
            sum1 += i;
        }
        System.out.println(sum1);
        int j = 1;
        while (j <=10){
            sum2 += j;
            j++;
        }
        System.out.println(sum2);
        int k = 1;
        do {
            sum3 += k;
            k++;
        }while (k <= 10);
        System.out.println(sum3);
    }
}
